package com.library.dto.pojo.excelPo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

/**
 * @author weiwu
 * @description 读者信息导出excel映射对象
 * @date 2018/10/5 22:43
 */
@Data
public class ReaderImportInfo extends BaseRowModel {
    /**
     * 说明：读者的id
     */
    @ExcelProperty ( value = "读者编号", index = 0 )
    private Integer readerId;
    /**
     * 说明：读者密码
     */
    @ExcelProperty ( value = "读者密码", index = 1 )
    private String password;
    /**
     * 说明：读者的姓名
     */
    @ExcelProperty ( value = "读者名字", index = 2 )
    private String name;
    /**
     * 借书卡编号，其实用户的借书卡卡号和读者的id是一致的
     */
    @ExcelProperty ( value = "借书卡编号", index = 3 )
    private String libCardId;
    /**
     * 手机号码
     */
    @ExcelProperty ( value = "联系电话", index = 4 )
    private String phone;
    /**
     * 邮箱地址
     */
    @ExcelProperty ( value = "邮箱地址", index = 5 )
    private String email;
    /**
     * 读者对应的读者种类，不同的身份，关联ReaderType中的readerId属性
     */
    @ExcelProperty ( value = "读者类型", index = 6 )
    private Integer readerTypeId;

}
